import {getToken} from "@/util";
import axiosInstance from "@/api";
import {response} from "@/hooks";

export async function useAllProjects() {
    const token = getToken()
    return await axiosInstance.get<any, response>("/v1/project/all", {
        headers: {
            "x-token": token
        }
    })
}